<?php
namespace View\Controller;
use Think\Controller;
class IndexController extends Controller {

	public function displays(){
		$data = array(
		'name' => 'gay',
		'age' => 25,
		'sex' => 'gay', 
		);
		$this->assign('data',$data);
		$content = $this->fetch();
		// $content = str_replace('gay','girl',$content);
		$this->show($content);
	}

    public function index(){
    	$data = array(
		'name' => 'heaven',
		'age' => 18,
		'sex' => 'man', 
		);
    	$this->assign('data',$data);
    	$this->display();
    }


    public function testView(){
    	$this->display();
    }
}